import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import "./styles/reset.css";
import "./styles/iconfont.css"

//1--- 图片懒加载  npm i vue-lazyload@1
import VueLazyload from "vue-lazyload";

import store from "@/store/index"
 import './plugins/element.js'
Vue.config.productionTip = false;

//2--- 使用懒加载    
Vue.use(VueLazyload, {
  preLoad: 1.3,
  loading: "./images/loading.gif",
  attempt: 1,
});
  //3---- // 本地图片需要放入public/images下
//  <img v-lazy="'./images/brand_21.png'" />


new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount("#app");
